package com.example.signsystem.controller;

import com.example.signsystem.entity.parm.BlogInfoParam;
import com.example.signsystem.service.IBlogService;
import com.qcby.framework.common.pojo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/sign-system/blog")
public class BlogController {

    @Autowired
    private IBlogService blogService;

    /**
     * 更改博客数量信息
     * @param blogInfoParam
     * @return
     */
    @PostMapping("/blog-info-change")
    public Result<Boolean> blogInfoChange(@RequestBody BlogInfoParam blogInfoParam){
        return Result.getSuccessResult(blogService.blogInfoChange(blogInfoParam));
    }
}
